package com.kitty.game.welfare.model;

import com.kitty.common.db.BaseEntityGame;
import lombok.Getter;
import lombok.Setter;
//后写
import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

@Table("t_commonfetch")
@Getter
@Setter
public class CommonFetchedData extends BaseEntityGame<String> {
    @Name
    protected String type;
    @Column
    @ColDefine(customType = "longtext")
    protected String data;

    public CommonFetchedData() {}

    public CommonFetchedData(String type, String data) {
        this.type = type;
        this.data = data;
    }

    @Override
    public String getId() {
        return type;
    }
}
